<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<%@ include file="/module/js.jsp"%>
<%@ include file="/module/orderField.jsp"%>

<style>

table label.error {
    margin-left: 5px;
    width: auto;
    display: inline;
    color: red;
}


</style>
</head>
<body>
     <form action="#" name="Form" id="Form" method="post">
       <input type="hidden" name="dbid" id="dbid"  value="${data.dbid}"/>
		<table cellpadding="0" cellspacing="0" border="0" class="table-border" width="95%">
			<tr>
				<td class="table-header" colspan="4" style="text-align:center;vertical-align:middle;">班主任顶班申请</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">申请人姓名</td>
				<td class="table-contentTD" style="width: 35%">${data.xm}</td>
		
			    <td class="table-titleTD" style="width: 15%">申请人工号：</td>
				<td class="table-contentTD" style="width: 35%">${data.zgh}</td>
			</tr>
			
			<tr>
				<td class="table-titleTD" style="width: 15%">申请日期：</td>
				<td class="table-contentTD" style="width: 35%">${data.applydate1}</td>
			
				<td class="table-titleTD" style="width: 15%">状态：</td>
				<td class="table-contentTD" style="width: 35%">
				    <c:if test="${data.states==0}">未提交 </c:if>
					<c:if test="${data.states==1}">审核中 </c:if> 
					<c:if test="${data.states==2}">审核通过 </c:if>
					<c:if test="${data.states==3}">审核退回</c:if>
			      </td>
			</tr>
			 <tr>
				<td class="table-titleTD" style="width: 15%">顶班人：</td>
				<td class="table-contentTD"  colspan="3">${data.dbxm}</td>
			</tr>
			 <tr>
				<td class="table-titleTD" style="width: 15%">顶班开始日期：</td>
				<td class="table-contentTD" style="width: 35%">${data.ksrq1}</td>
			
				<td class="table-titleTD" style="width: 15%">开始日期范围：</td>
				<td class="table-contentTD" style="width: 35%">
				         <input type="radio" value="上午" name="ksrqfw"  disabled="disabled" <c:if test="${data.ksrqfw=='上午'}">checked="checked"</c:if>/>上午
				 	     <input type="radio" value="下午" name="ksrqfw" disabled="disabled"  <c:if test="${data.ksrqfw=='下午'}">checked="checked"</c:if>/>下午
				</td>
			</tr>
			
		     <tr>
				<td class="table-titleTD" style="width: 15%">顶班结束日期：</td>
				<td class="table-contentTD" style="width: 35%">${data.jsrq1}</td>
									
				<td class="table-titleTD" style="width: 15%">结束日期范围：</td>
				<td class="table-contentTD" style="width: 35%">
				 	    <input type="radio" value="上午" name="jsrqfw" disabled="disabled" <c:if test="${data.jsrqfw=='上午'}">checked="checked"</c:if>/>上午
				 	    <input type="radio" value="下午" name="jsrqfw" disabled="disabled" <c:if test="${data.jsrqfw=='下午'}">checked="checked"</c:if>/>下午
				</td>
			</tr>
			<tr>
				<td class="table-titleTD">顶班事由：</td>
				<td class="table-contentTD" colspan="3">${data.reasons}</td>
			</tr>
			<tr>
				<td class="table-titleTD">备注：</td>
				<td class="table-contentTD" colspan="3"><!-- <textarea rows="8" cols="150" name="remark"  placeholder="备注" id="remark" maxlength="2000" > -->${data.remark}<!-- </textarea> --></td>
			</tr>
		</table>
		</form>
		<br />
		  <c:if test="${data.states!=0}">
		    <form action="#" name="Form2" id="Form2" method="post">
				<table cellpadding="0" cellspacing="0" border="0" class="table-border" width="95%">
					<tr>
						<td class="table-header" colspan="4" >审批结果</td>
					</tr>
					<tr>
						<td class="table-titleTD" style="width: 15%">审批人:</td>
						<td class="table-contentTD" style="width: 35%">${data.auditorname}</td>
				
					    <td class="table-titleTD" style="width: 15%">审批时间：</td>
						<td class="table-contentTD" style="width: 35%"><fmt:formatDate value="${data.audittime}" pattern="yyyy-MM-dd"/></td>
					</tr>
					<tr>
						<td class="table-titleTD">审批意见：</td>
						<td class="table-contentTD" colspan="3">${data.auditresult}</td>
					</tr>
				</table>
				</form>
				<br/>
			</c:if>	
			
		<table cellpadding="1" cellspacing="1" border="0" align="left">
			<tr>
			    <c:if test="${data.states==0 or data.states==3}">
			            <kl:permission permisstionList="${permisstionList}" currentUser="${_login_console_user}" currentCatalogId="<%=CatalogUtils.getCatalogId(\"XGGL_BJXX_BZRDB\")%>" key="modify">	
			            <td><input type="button" id="btnSubmit" class="inputButton" style="text-align: center;" value="提交" /></td>
			        	<td><input type="button" id="btnSave" class="inputButton" style="text-align: center;" value="修改" /></td>
			        	</kl:permission>
				</c:if>
				<td><input type="button" id="returnBut"  class="inputButton" value="返回"  style="text-align: center;"/></td>
			</tr>
		</table>
		<script>
		 
			$(document).ready(function() {
				  $("#btnSave").click(function() {
					 window.location.href ="${basePath}/bjxxClassWorkInstead/updateToview?id="+ $("#dbid").val();
		 		  });
				
				 $("#returnBut").click(function() {
		 			 window.location.href='${basePath}/bjxxClassWorkInstead/index_bzr';
		 		 });
				 
				  $("#btnSubmit").click(function() {
				       window.location.href ="${basePath}/bjxxClassWorkInstead/btnSubmit?id="+ $("#dbid").val();
			 	  });
			});
		</script>
</body>
</html>
